//
//  NSManagedObject+BmObject.m
//  Ants
//
//  Created by ZHM on 16/7/10.
//  Copyright © 2016年 ZHM. All rights reserved.
//

#import "NSManagedObject+BmObject.h"
#import <objc/runtime.h>


@implementation NSManagedObject (BmObject)

- (NSObject *)bmObject {
    return objc_getAssociatedObject(self, @selector(bmObject));
}

- (void)setBmObject:(NSObject *)bmObject {
    objc_setAssociatedObject(self, @selector(bmObject), bmObject, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
@end
